Repository navigation
Show pulsing terminal activity icon in thread sidebar - #21
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThe Sidebar component was refactored to replace inline terminal status pill handling with a dedicated icon-based indicator. A new TerminalStatusIndicator type was introduced to encapsulate terminal state, terminalStatusPill was renamed to terminalStatusIndicator, and UI rendering now displays a TerminalIcon with dynamic styling instead of the previous pill-based block. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
- Replace terminal text badge with a right-aligned `TerminalIcon` - Add accessible label/title: "Terminal process running" - Keep pulse animation and terminal-active color styling
af5be49 to
fea186c
Compare
Show a pulsing
|
Greptile OverviewGreptile SummaryIntroduced terminal subprocess activity tracking to show a dedicated pulsing terminal icon in the thread sidebar when terminals have running child processes. The implementation adds server-side polling that checks for subprocess activity every second using platform-specific commands (
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Terminal as Terminal Session
participant TM as TerminalManager
participant Poller as Subprocess Poller
participant Server as WebSocket Server
participant Client as Web Client
participant Store as React Store
participant UI as Sidebar UI
Terminal->>TM: Terminal started
TM->>TM: Set hasRunningSubprocess = false
TM->>TM: updateSubprocessPollingState()
TM->>Poller: Start polling (1s interval)
TM->>Server: Emit "started" event
Server->>Client: Push terminal event
Client->>Store: APPLY_TERMINAL_EVENT (started)
Store->>Store: Remove from runningTerminalIds
loop Every 1 second
Poller->>Poller: Check if sessions exist
Poller->>TM: Call subprocessChecker(terminalPid)
TM->>TM: Run pgrep/ps (POSIX) or PowerShell (Windows)
TM-->>Poller: hasRunningSubprocess = true
Poller->>TM: Update session.hasRunningSubprocess
TM->>Server: Emit "activity" event (hasRunningSubprocess: true)
Server->>Client: Push terminal event
Client->>Store: APPLY_TERMINAL_EVENT (activity)
Store->>Store: Add to runningTerminalIds
Store->>UI: Re-render
UI->>UI: Show pulsing TerminalIcon
end
Terminal->>TM: Subprocess completes
Poller->>TM: subprocessChecker returns false
TM->>Server: Emit "activity" event (hasRunningSubprocess: false)
Server->>Client: Push terminal event
Client->>Store: APPLY_TERMINAL_EVENT (activity)
Store->>Store: Remove from runningTerminalIds
Store->>UI: Re-render
UI->>UI: Hide TerminalIcon
Terminal->>TM: Terminal exited
TM->>TM: Set hasRunningSubprocess = false
TM->>TM: updateSubprocessPollingState()
TM->>Poller: Stop polling (no running sessions)
TM->>Server: Emit "exited" event
Server->>Client: Push terminal event
Client->>Store: APPLY_TERMINAL_EVENT (exited)
Store->>Store: Remove from runningTerminalIds
Last reviewed commit: fea186c |
|
Update: added a second commit fixing the MCP discovery bug. Root causeThe Claude Agent SDK defaults to isolation mode when FixPass All 26 tests pass, lint clean, typecheck clean. |
chore: avoid prose wording
Orchestrator V2 (4/n): switch providers between turns
… set_thinking_level passthrough (pingdotgg#21)
…o the shared NodeTestLayer (pingdotgg#22)
…otgg#18/pingdotgg#21/pingdotgg#23 - @hono/node-server 1.19.17 -> 1.19.18 (GHSA-jpvv-r467-5p4w) - node-forge 1.4.2 -> 1.4.3 (GHSA-6889-vf6x-f3g5 u.a.) - fast-xml-parser 5.7.3 -> 5.12.0 (GHSA-474x-hrwr-fgx4) - qs 6.16.0 -> 6.16.1 (GHSA-6pq8-jhm2-2vcw) - seroval/seroval-plugins 1.5.4 -> 1.6.11 (GHSA-f86p-h4j2-7qgj u.a.) - undici 6.29.0/7.29.1/8.11.2 -> 6.29.1/7.30.1/8.12.2 (GHSA-qrxm-fqhp-jwvm, GHSA-9fm3-97px-rjf6) - @modelcontextprotocol/sdk (devDependency, apps/server) 1.29.0 -> 1.30.1 (GHSA-f897-62hf-6gxq) - astro (apps/marketing) 7.3.5 -> 7.4.5 (GHSA-mh32-jxcr-mh9f) Alles transitiv ausser mcp-sdk und astro, jeweils Patch-/Minor-Release ohne API-Bruch. basic-ftp und happy-dom aus den gleichen Issues sind laut Lockfile aktuell gar nicht aufgelöst (optionale Peer bzw. nicht installiert), minimatch/glob (pingdotgg#15) bleiben bewusst offen (Major-Sprung, siehe PR-Text). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ments Port the LAN and SSH connection work from scriptedalchemy/main (pingdotgg#21, pingdotgg#44, pingdotgg#47, pingdotgg#59, pingdotgg#60, pingdotgg#79, pingdotgg#88, plus later fixes to those files): - Servers advertise `_t3code._tcp` over mDNS and answer a LAN discovery proof; desktop (bonjour-service) and mobile (new t3-lan-discovery Expo module) rediscover paired machines whose address changed. - A device paired over HTTPS or Tailscale mints a DPoP-bound LAN credential that cannot outlive or outrank its paired session. - The server reports its mDNS `.local` name as a LAN endpoint. - Peer links accept ssh://user@host and run over a managed SSH tunnel that leaves the remote server running on disconnect. - SSH remote setup reuses an exact-release installed CLI behind bounded probes, binds the forward to loopback, only reuses a live tunnel, and refuses to replace an installed-but-stopped background service. Adaptations for upstream: PeerLinks exposes one shared `layerWithSsh`, also used by the orchestration runtime layer; upstream's release-mirror download path and its download error text are kept; inference-host address resolution and other fork-only features are left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # apps/server/src/mcp/toolkits/bots/tools.ts # apps/server/src/provider/agentContextBudget.json # apps/web/src/r3/i18n/de.json # apps/web/src/r3/i18n/en.json # apps/web/src/r3/i18n/es.json # apps/web/src/r3/i18n/fr.json # apps/web/src/r3/i18n/ja.json # apps/web/src/r3/i18n/ko.json # apps/web/src/r3/i18n/pl.json # apps/web/src/r3/i18n/pt-BR.json # apps/web/src/r3/i18n/ru.json # apps/web/src/r3/i18n/sv.json # apps/web/src/r3/i18n/zh.json
…e main thread bot_create (pingdotgg#20) now starts the new bot main thread, so the box in the cross-link test (pingdotgg#21) needs a default bot model and a launch mock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… fixes (16 PRs, 39f75bc..772e3d4) Surgically ported 16 Server/Provider/Git/Handoff/Device Bucket B fixes from pingdotgg/t3code (39f75bc..772e3d4) preserving all 25 T4 locked customizations plus independent Astra blind-review fixes: - Peer/Handoff/Git: pingdotgg#46224, pingdotgg#46225, pingdotgg#46233, pingdotgg#46332, pingdotgg#46364, pingdotgg#46365 - Antigravity/ACP & Skills (Lock pingdotgg#11/pingdotgg#16/pingdotgg#20): pingdotgg#46283, pingdotgg#46375, pingdotgg#46439 - Orchestrator, Workflows & Devices (Lock pingdotgg#21/pingdotgg#22/pingdotgg#23/pingdotgg#25): pingdotgg#46196, pingdotgg#46221, pingdotgg#46376, pingdotgg#46390, pingdotgg#46465 - Cloud/Connect & Replay: pingdotgg#46281, pingdotgg#46325 - Blind-review fixes: resolve push target from explicit branch upstream, GitRefName for pull_request_create.head, include pending peer/CI wake outbox rows in ActiveWaitService.hasActiveWait, followRestart on remote interrupts, match headRepositoryNameWithOwner in PR cache invalidation, deduplicate Antigravity skills scans.
Ported 13 cross-layer upstream commits: pingdotgg#45961, pingdotgg#46662, pingdotgg#46705, pingdotgg#46756, pingdotgg#46750, pingdotgg#46778, pingdotgg#46840, pingdotgg#46844, pingdotgg#46891, pingdotgg#46932, pingdotgg#47015, pingdotgg#47089, pingdotgg#44864. (pingdotgg#46704 confirmed already solved with superior T4 implementation in 0a32ef3.) Preserved all locked T4 customizations including Lock pingdotgg#18 mentionMenu gating, Lock pingdotgg#21 Tiptap editor, and Task Board /board split-view fork guard.
…ch sweeps Preserve historical delivery_status = 'committed' on T4 thread-task and external-watch wakes whose target run already started or finished, rather than retroactively rewriting them to 'voided' on later cancel, stop, supersede, or next-round transitions. - Extract shared apps/server/src/t4/wakes/WakeCancellation.ts: pending wakes void immediately while committed wakes carry durable cancel_queued / interrupt_raced markers until drained, settling to 'voided' (run cancelled or interrupted) or 'committed' with error_reason = 'executed' so subsequent cancels/polls/rounds skip them. - Replace unconditional 15s ExternalWatchReactor sweeps while idle with an effect/Latch wake gate and an untraced 2-minute DB self-healing check, resuming the 15s cadence immediately when new work arrives. - Document updated Lock pingdotgg#21 / pingdotgg#22 invariants in T4_CUSTOMIZATIONS.md and add full matrix, race, failed-drain retry, idempotency, and idle-trace regression tests (121/121 passing). Implemented with Claude Opus 5.5, blind-audited by Claude Fable 5.2, P1 drain-idempotency & test hardening integrated by Antigravity.
* feat(team): add trusted single-account server mode * feat(team): allow trusted-team moderators to manage basic schedules * fix(team): address trusted-mode council findings
Summary
Sidebarwhen a thread has running terminal processesTerminalIconwith accessiblearia-label/titleTesting
runningTerminalIds.length > 0Summary by CodeRabbit
Style